package com.opal.jx.service.impl;

import com.opal.jx.entity.table.JxAssessContent;
import com.opal.jx.entity.table.JxAssessContentExample;
import com.opal.jx.mapper.mysql.JxAssessContentMapper;
import com.opal.jx.service.JxAssessContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JxAssessContentImpl implements JxAssessContentService {

    @Autowired
    private JxAssessContentMapper jxAssessContentMapper;

    @Override
    public List<JxAssessContent> getJxAssessContentById(String id) {
        return null;
    }

    @Override
    public List<JxAssessContent> getJxAssessContentByPostCode(Long postId) {
        JxAssessContentExample jxAssessContentExample = new JxAssessContentExample();
        jxAssessContentExample.createCriteria().andPostIdEqualTo(postId);
        List<JxAssessContent> result = jxAssessContentMapper.selectByExample(jxAssessContentExample);

        return result;
    }

}
